package mathematics.geometry;

import utils.Point3D;


public class RectangleGeometry extends Geometry
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -3065990515967990759L;

	public RectangleGeometry(float x, float y, int width, int height)
	{
		this.add(new Point3D(x, y));
		this.add(new Point3D(x + width, y));
		this.add(new Point3D(x + width, y + height));
		this.add(new Point3D(x, y + height));
	}
	
	public RectangleGeometry(Point3D p0, Point3D p1, Point3D p2, Point3D p3)
	{
		this.add(p0);
		this.add(p1);
		this.add(p2);
		this.add(p3);
	}	
}
